<!-- 标题简介 -->

<{if $setting.buytarget == '2'}>
<{assign var='buytarget' value='target="_blank_cart"'}>
<{elseif $setting.buytarget == '3'}>
<{assign var='buytarget' value='target="_dialog_minicart"'}>
<{/if}>
<form action="<{link app=b2c ctl=site_cart act=add arg0=goods}>" method="post" <{$buytarget}>>
  <input type="hidden" name="prepare_type" value="<{$page_product_basic.promotion_type}>">
  <input type="hidden" name="btype">
  <input type="hidden" name="goods[goods_id]" value="<{$page_product_basic.goods_id}>">
  <input type="hidden" name="goods[product_id]" value="<{$page_product_basic.product_id}>">
  <div class="product-side" style="width:<{$setting.imageDefault.M.width+2}>px;">
    <{include file='site/product/info/pic.html'}>
	<script type="text/javascript" src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js" charset="utf-8"></script>
	<script type="text/javascript" src="//yastatic.net/share2/share.js" charset="utf-8"></script>
	<div style="padding:12px;" class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,moimir,gplus,twitter,linkedin,whatsapp"></div>
  </div>
  <div class="product-main clearfix" style="margin-left:<{$setting.imageDefault.M.width+20}>px;">
    <div class="product-titles">
      <h2>
        <{$page_product_basic.title}>
        <{ if $page_product_basic.promotion_type == 'prepare'}>
            <span style="color:#fff;background:red;font-weight:bold;padding:0 10px;font-size: 14px;height: 20px;line-height: 20px;display: inline-block;vertical-align: middle;"><{t}>预售<{/t}></span>
        <{/if}>
      </h2>
      <{if $page_product_basic.brief}><p><{$page_product_basic.brief}></p><{/if}>
    </div>
    <!-- 商品基本信息 -->
    <div id="product_information" class="product-information">
    
    
    <div class="fl" style="width:400px;">
		<!-- 扩展属性 -->
		<{include file='site/product/info/props.html'}>
		<!-- 商品规格 -->
		<{if $page_product_basic.spec.goods && $page_product_basic.goods_marketable == 'true'}>
			<{include file='site/product/info/spec.html'}>
		<{/if}>
    </div>
      <div class="fr" style="width:400px;">
              <!-- 购买区 -->
              <div class="product-buy">
                
                    <div class="product-action">
                      <ul><!--yhy供应商不能购买商品-->
                      <{ if $page_product_basic.promotion_type != 'prepare'}>
                          
                          <li>
                              <p>Цена за ед.тов.: </p>
                              <p class="s-price"><{$page_product_basic.s_price|cur}></p>

							  <p>Цена за уп.: </p>
                              <p class="unit-price"><{$page_product_basic.price|cur}></p>
                          </li> 
						  <!--商品库存-->
                          <{include file='site/product/info/store.html'}>
                          <!--购买按钮-->
                          <{include file='site/product/info/btn.html'}>

                        <{/if}>
                          <!--判断是预售商品-->
                        <{ if $page_product_basic.promotion_type == 'prepare'}>
                           <{include file='site/product/prepare/store.html'}>
                           <{include file='site/product/prepare/btn.html'}>
                        <{/if}>
                      </ul>
                      <!-- 分享推荐收藏 -->
                      <{include file='site/product/info/share.html'}>
                    </div>
              </div>
         </div>
    </div>
  </div>
</form>

<img src="<{link app=b2c ctl=site_product act=cron arg=$page_product_basic.goods_id }>" width="1" border="none" height="1">

<{*if $product_store.store <= 0*}>
<div id="product_notify" class="product-notify" style="display:none;">
  <p class="desc"><{t}>该货品暂时缺货，请在下面输入您的邮箱地址或手机号码，当我们有现货供应时，我们会发送邮件通知您！<{/t}></p>
  <form class="form" method="post" action="<{link app=b2c ctl=site_product act=toNotify}>">
    <input type="hidden" name="item[0][goods_id]" value="<{$page_product_basic.goods_id}>">
    <input type="hidden" name="item[0][product_id]" value="<{$page_product_basic.product_id}>">
    <ul>
      <li class="form-item">
        <label for="" class="form-label"><{t}>邮箱地址<{/t}>：</label>
        <span class="form-act">
          <{input type="text" name="email" id="" size="30" vtype="required&&email"}>
        </span>
      </li>
      <li class="form-item">
       <label for="" class="form-label"><{t}>手机号码<{/t}>：</label>
          <!-- <{input type="text" name="cellphone" id="" size="30" vtype="required"}>-->
		<{if $phones}>
			<!--手机验证-->
			<select name="phone_setting" id="quhao" style="border: 1px solid #ccc;padding:2px 5px;">
				<{foreach from=$phones item=items}>
				<option sid="<{$items.length}>" value="<{$items.area}>"><{$items.country}><{$items.area}></option>
				<{/foreach}>
			</select>
				<{input type="text" name="cellphone" id="" size="30" vtype="required"}>
		<{else}>
			<span class="form-act">
				<{input type="text" name="cellphone" id="" size="30" vtype="required"}>
			</span>
		<{/if}>
      </li>
      <li class="form-item form-item-last">
        <label for="" class="form-label"></label>
        <span class="form-act">
          <{button type="submit" class="btn-caution" label=$___b2c="提交"|t:'b2c' rel="_request"}>
        </span>
      </li>
    </ul>
  </form>
</div>
<{*/if*}>
